package cn.alusiaor.dic.domain.DO;

import cn.alusiaor.dic.typehandler.StatusTypeHandler;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "dic", autoResultMap = true)
public class Dic {
    @TableId(type = IdType.ASSIGN_UUID)
    /**
     * 主键
     */
    private String id;

    /**
     * 属组
     */
    private String dicGroup;

    /**
     * 字典名称
     */
    private String dicName;

    /**
     * 字典值
     */
    private String dicValue;

    /**
     * 是否默认值
     */
    private int dicDefault;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    @TableField(typeHandler = StatusTypeHandler.class)
    private Dic status;

    /**
     * 备注
     */
    private String remark;
}
